package com.yeyks.service;

import java.io.InputStream;

public interface OssService {
    /**
     * 读取OSS数据
     * @param key
     * @return
     */
    byte[] readOSS(String key);

    /**
     * 写入OSS数据
     * @param source
     * @param key
     * @return
     */
    boolean writeOSS(Object source, String key);

    /**
     * 获取外网访问URL前缀
     * @return
     */
    String getPrefixUrl();

    String uploadImage(InputStream inputStream, String key);
}
